package com.dongjiantong.user.serviceImpl;/**
 * Created by cao on 2017/12/13.
 */

import com.alibaba.dubbo.config.annotation.Service;
import com.dongjiantong.mybatis.ServiceMybatis;
import com.dongjiantong.user.mapper.LogsUserLoginMapper;
import com.dongjiantong.user.model.LogsUserLogin;
import com.dongjiantong.user.service.LogsUserLoginService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author cao
 * @create 2017-12-13 上午11:23
 **/
@Service(version = "1.0.0")
public class LogsUserLoginServiceImpl extends ServiceMybatis<LogsUserLogin> implements LogsUserLoginService {

    @Resource
    private LogsUserLoginMapper logsUserLoginMapper;

    @Override
    public PageInfo<LogsUserLogin> queryListByUserId(long userId, Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        return new PageInfo<>(logsUserLoginMapper.queryListByUserId(userId));
    }
}
